﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2025-03-02 17:12
    /// 描 述：实体类
    /// </summary>
    [Table("goods_sku_stock")]
    public class GoodsSkuStockEntity : BaseEntity
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? goods_id { get; set; }
        /// <summary>
        /// sku编码
        /// </summary>
        /// <returns></returns>
        public string sku_code { get; set; }
        /// <summary>
        /// sku名称
        /// </summary>
        /// <returns></returns>
        public string sku_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public decimal? price { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        /// <returns></returns>
        public int? stock { get; set; }
        /// <summary>
        /// 预警库存
        /// </summary>
        /// <returns></returns>
        public int? low_stock { get; set; }
        /// <summary>
        /// 展示图片
        /// </summary>
        /// <returns></returns>
        public string pic { get; set; }
        /// <summary>
        /// 销量
        /// </summary>
        /// <returns></returns>
        public int? sale { get; set; }
        /// <summary>
        /// 单品促销价格
        /// </summary>
        /// <returns></returns>
        public decimal? promotion_price { get; set; }
        /// <summary>
        /// 锁定库存
        /// </summary>
        /// <returns></returns>
        public int? lock_stock { get; set; }
        /// <summary>
        /// 商品销售属性，json格式
        /// </summary>
        /// <returns></returns>
        public string sp_data { get; set; }

        public int? isDefault { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? colorsid { get; set; }
    }
}
